package org.hxyjs.service;

import org.hxyjs.dto.DTO;
import org.hxyjs.entity.Supplierorder;
import org.hxyjs.page.PageInfo;

public interface SupplierorderService {
    /**
     * 查询全部订单
     *
     * @return
     */
    public DTO<Supplierorder> getAllSupplierorders() throws Exception;

    /**
     * 删除订单
     *
     * @param usno
     * @return
     * @throws Exception
     */
    public DTO<Supplierorder> deleteSupplierorderByUsno(String usno) throws Exception;

    /**
     * 修改订单
     *
     * @param supplierorder
     * @return
     */
    public DTO<Supplierorder> updateSupplierorderByUsno(Supplierorder supplierorder) throws Exception;

    /**
     * 增加订单
     *
     * @param supplierorder
     * @return
     */
    public DTO<Supplierorder> addSupplierorder(Supplierorder supplierorder) throws Exception;

    /**
     * 根据主键查询订单
     *
     * @param usno
     * @return
     * @throws Exception
     */
    public DTO<Supplierorder> getSupplierorderByUsno(String usno) throws Exception;

    public DTO<Supplierorder> getSupplierorderByPage(PageInfo pageInfo) throws Exception;

    public DTO<Supplierorder> getSupplierorderByPage(PageInfo pageInfo,String cacheId) throws Exception;


}
